package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.DataDictionary;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface IDataDictionaryService {

    List<DataDictionary> selectAll();

    /**
     * 验证名称
     * @param id
     * @param name
     * @return
     */
    Boolean selectByName(Long id, String name);


    void saveOrUpdate(DataDictionary dataDictionary);

    void delete(Long id);

    List<Map<String,String>> getAllLevel(String level);
}
